import Vue from 'vue'
Vue.filter('unix2Time', time => {
  let date = new Date(time)
  let year = date.getFullYear()
  let month = date.getMonth()+1
  let day = date.getDate()
  let h = date.getUTCHours()
  let m = date.getUTCMinutes()
  let s = date.getUTCSeconds()
  let a = date.toLocaleString()
  return a
  
})